package de.fhhannover.inform.itteam.snmpnetviz.gui.util;

import java.awt.Image;

import javax.swing.ImageIcon;

public class ScaleImage {
	
	public static ImageIcon resize(int x, int y, ImageIcon ii) {
		Image image = ii.getImage();
		image = image.getScaledInstance(x, y, Image.SCALE_FAST);
		
		return new ImageIcon(image);
	}
	
	public static Image resizeImage(int x, int y, Image image) {
		image = image.getScaledInstance(x, y, Image.SCALE_FAST);
		
		return image;
	}

}
